﻿//班级管理
var option = {};
option.columns = [
          { title: 'ID', field: 'ID' },
          { title: '系部名称', field: 'xbmc' },
          { title: '班级代码', field: 'bh' },
          { title: '年级', field: 'nj' },
          { title: '班级名称', field: 'bj' },
                    { title: '班级QQ', field: 'bjqq' },
          { title: '操作', field: 'ID', formatter: getBZ, width: 250 }
];
function getBZ(value, row) {
    var str = '';
    str = '<a onclick="editcg(' + value + ')">设置班主任</a>&nbsp;&nbsp;&nbsp;&nbsp;'
    str = str + '<a onclick="glbjxw(' + value + ')">管理班级新闻公告</a>';
    return str;
}
function editcg(id) {
    parent.MyDialog.viewform("/View/SPList/MangerBJ.aspx?ID=" + id + "&r=" + Math.random(), "设置班级信息")
}

function glbjxw(bjdm) {
    var href = "Comon/CommonListN.aspx?FormCode=BJGG&bjdm=" + bjdm;
    top.$(body).data("bjdm", bjdm);
    top.addNewTab(href, bjdm, "管理班级信息");
}
